From: Emmanuele Bassi Date: Sun, 11 Feb 2018 15:13:06 +0000 (+0000) Subject: Ignore deprecations for gdk_flush() X-Git-Tag: archive/raspbian/3.24.39-1+rpi1~1^2~65^2~38^2~16 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=382d6c1bcb683291ef7073ea83a95a524cf68b6e;p=gtk%2B3.0.git Ignore deprecations for gdk_flush() When terminating the main loop, we're really trying to flush all GdkDisplay connections, so it's actually a legitimate internal use case. --- diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index a9b9481c63..74ce18009d 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -1322,7 +1322,10 @@ gtk_main (void) gdk_threads_leave (); g_main_loop_run (loop); gdk_threads_enter (); + + G_GNUC_BEGIN_IGNORE_DEPRECATIONS; gdk_flush (); + G_GNUC_END_IGNORE_DEPRECATIONS; } main_loops = g_slist_remove (main_loops, loop);